Supported Files

imaG CAN LOAD AND SAVE THE FOLLOWING FILES

  File Description Constant
  BMP caFileBmp = 0
  GIF caFileGif = 1
  JPG caFileJpg = 2
  TIF caFileTif = 4 [If Imaging for Windows (Copyright © Kodak, 1995-1997) is present]
     

FILES AND IMAGES

Comp = Compression - Trans = Transparent

File Description Image Comp Trans
BMP TRUE COLOR IMAGE - PALETTIZED IMAGE NO NO
GIF PALETTIZED IMAGE AUTO YES
JPG TRUE COLOR IMAGE YES NO
TIF TRUE COLOR IMAGE - PALETTIZED IMAGE AUTO NO
       

COMPRESSION AND TRANSPARENT

When saving a Jpg file you can specify the compression level.
COMPRESSION LEVEL : 1 to 100

When saving a Gif file you can specify the transparent color.

Available Transparent Color Constants
 
caGifTransparentNone = -1
caGifTransparentBlack = &H0&
caGifTransparentWhite = &HFFFFFF
caGifTransparentGray = &HC0C0C0
caGifTransparentRed = &HFF&
caGifTransparentBlue = &HFF0000
caGifTransparentYellow = &HFFFF&

ERRORS

If you are NOT in caModeDraw MODE, an ERROR will be thrown.

When saving a Gif file from a non palettized image, an ERROR will be thrown.